import { requestTool } from "../index.js";

const rooturl = "/MyArticle";

const myArticleMap = {
  postArticle: {
    method: "post",
    url: "",
    ContentType: "json",
    submitData: {
      autherId: "autherId",
      introduce: "about",
      title: "title",
      labels: "label",
      content: "content",
      privacy: "privacy",
    },
  },
  putArticle: {
    method: "put",
    url: "",
    ContentType: "json",
    submitData: {
      id: "id",
      autherId: "autherId",
      introduce: "about",
      title: "title",
      labels: "label",
      content: "content",
      privacy: "privacy",
    },
  },
  deletArticle: {
    method: "delete",
    url: "",
    ContentType: "rest",
  },
  getArticle: {
    method: "get",
    url: "",
    ContentType: "rest",
  },
};

export default requestTool(myArticleMap, rooturl);
